<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
      <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script>
	$(document).ready(function(){
		$("#viewMovieList").click(function(){
			location.href="admin.do?command=movie_list_admin";
		});
	});
</script>
<c:choose>
<c:when test="${sessionScope.vo.memberlevelinfoVO.member_level_no !=1}">
<script>
	alert("잘못된 접근입니다!");           
	location.href="mycinema.do?command=home_main";
</script>
</c:when>
<c:when test="${sessionScope.vo.memberlevelinfoVO.member_level_no ==1}">
<font size='3' color='#d2b48c'>영화 상세 정보 </font> 
<input type="button" id="viewMovieList" value="목록보기">

<hr color="#f5f5f5">
<table width='70%' style='table-layout: fixed' >
	<tr>
		<td rowspan="8" width="300"><img src="img.poster/${requestScope.vo.movie_no}.jpg" width="200"/></td>
		<td><font class="movie_title">${requestScope.vo.movie_title}</font> <img src="img.grade/${requestScope.vo.movieGradeInfoVO.movie_grade_no}.png"></td>
	</tr>
	<tr>
		<td><b><font color="#696969"> 감독</font></b> ${requestScope.vo.director} </td>
	</tr>		
	<tr>
		<td><b><font color="#696969">출연</font> </b> ${requestScope.vo.actor}</td>
	</tr>
	<tr>
		<td><b><font color="#696969"> 등급</font> </B> 
		<c:choose>
			<c:when test="${requestScope.vo.movieGradeInfoVO.movie_grade_no==1}">전체 관람가</c:when>
			<c:otherwise>${requestScope.vo.movieGradeInfoVO.movie_grade}세 이상 관람가</c:otherwise>
		</c:choose>
		</td>
	</tr>
	<tr>
		<td><b><font color="#696969">개봉일</font> </b> ${requestScope.vo.opening_day}</td>
	</tr>	
	<tr>
		<td><b><font color="#696969">기본정보</font> </b> ${requestScope.vo.genreVO.genre} | ${requestScope.vo.countryVO.country} | ${requestScope.vo.running_time}분</td>
	</tr>
		<tr>
		<td><b><font color="#696969">배급사</font> </b> ${requestScope.vo.distributor}</td>
	</tr>
	<tr>
		<td><b><font color="#696969">홈페이지</font> </b> <a href="${requestScope.vo.homepage}" target=_blank>${requestScope.vo.homepage}</a></td>
	</tr>
</table>
<hr color="#f5f5f5">
<div class="my-box">
<table width='70%' style='table-layout: fixed' >
<tr>
	<td><b><font size='3'>synopsis</font></b><br></td>
</tr>

<tr>
	<td>${requestScope.vo.synopsis}</td>
</tr>
</table>
</div>

</c:when>
</c:choose>



